home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Freeware / Adobe Air 1.5 / AdobeAIRInstaller.exe / setup.swf / scripts / mx / skins / halo / ApplicationBackground.as next >
Encoding:
Text File  |  2008-10-29  |  1.5 KB  |  57 lines

  1. package mx.skins.halo
  2. {
  3.    import flash.display.Graphics;
  4.    import mx.core.mx_internal;
  5.    import mx.skins.ProgrammaticSkin;
  6.    import mx.utils.ColorUtil;
  7.    
  8.    use namespace mx_internal;
  9.    
  10.    public class ApplicationBackground extends ProgrammaticSkin
  11.    {
  12.       mx_internal static const VERSION:String = "3.0.0.0";
  13.       
  14.       public function ApplicationBackground()
  15.       {
  16.          super();
  17.       }
  18.       
  19.       override public function get measuredWidth() : Number
  20.       {
  21.          return 8;
  22.       }
  23.       
  24.       override public function get measuredHeight() : Number
  25.       {
  26.          return 8;
  27.       }
  28.       
  29.       override protected function updateDisplayList(param1:Number, param2:Number) : void
  30.       {
  31.          var _loc6_:uint = 0;
  32.          super.updateDisplayList(param1,param2);
  33.          var _loc3_:Graphics = graphics;
  34.          var _loc4_:Array = getStyle("backgroundGradientColors");
  35.          var _loc5_:Array = getStyle("backgroundGradientAlphas");
  36.          if(!_loc4_)
  37.          {
  38.             _loc6_ = getStyle("backgroundColor");
  39.             if(isNaN(_loc6_))
  40.             {
  41.                _loc6_ = 16777215;
  42.             }
  43.             _loc4_ = [];
  44.             _loc4_[0] = ColorUtil.adjustBrightness(_loc6_,15);
  45.             _loc4_[1] = ColorUtil.adjustBrightness(_loc6_,-25);
  46.          }
  47.          if(!_loc5_)
  48.          {
  49.             _loc5_ = [1,1];
  50.          }
  51.          _loc3_.clear();
  52.          drawRoundRect(0,0,param1,param2,0,_loc4_,_loc5_,verticalGradientMatrix(0,0,param1,param2));
  53.       }
  54.    }
  55. }
  56.  
  57.